package com.ocm.resource.service.impl;


import com.ocm.resource.service.MinioService;
import com.ocm.resource.utils.MinioUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;


/**
 * @program: local-live-admin
 * @description
 * @author: hqy
 * @create: 2021-04-11 20:05
 **/
@Service
public class MinioSericeImpl implements MinioService {

    @Resource
    private MinioUtils minioUtils;



    @Override
    public String uploadImageSe(MultipartFile file, String fileName, String suffix) throws Exception {
        String url= minioUtils.uploadImage(file,fileName,suffix);
        return url;
    }




}
